package com.osmino.core;

import android.app.TabActivity;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.widget.TabHost;

public abstract class AbsTabActivity extends TabActivity implements IController, TabHost.OnTabChangeListener {

	protected HostApplication mHostApplication;
	protected SharedPreferences mApplicationPreferences;
	protected SharedPreferences.Editor mApplicationPreferencesEditor;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mHostApplication = (HostApplication) getApplication();
		mApplicationPreferences = PreferenceManager.getDefaultSharedPreferences(this);
		mApplicationPreferencesEditor = mApplicationPreferences.edit();
	}

	@Override
	public final HostApplication getHostApplication() {
		return mHostApplication;
	}
	
	@Override
	public void onDialogCallback(DialogInfo dialogCallbackInfo) {//		
	}
	
	@Override
	public void onShow(DialogInterface dialog) {//
	}

	@Override
	public void onDismiss(DialogInterface dialog) {//
	}
}
